<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>悬停</title>
    <style>
        a{
            text-decoration: none;
            display: block;
        }
        .con{
            position: relative;
            width: 400px;
        }
        .con .item{
            width: 100%;
            height: 100%;
        }
        .con .item img{
            width: 100%;
        }
        .play-btn {
            opacity: 0;
            position: absolute;
            width: 56px;
            height: 56px;
            right: 10%;
            bottom: 10%;
            background: url(../img/下载和播放.png) no-repeat center center;
            transition: opacity 1s ease-in-out;
        }
        .con:hover .play-btn{
            opacity: 1;
        }
        .mask{
            width: 100%;
            height: 0;
            bottom: 0;
            position: absolute;
            transition: height 0.5s ease-in-out;
            overflow: hidden;
            opacity: 0.5;
        }
        .con:hover .mask{
            height: 100%;
        }

    </style>
</head>
<body background="../img/4.jpg">
    <div class="con">
        <a href="https://www.bilibili.com/video/BV1np411o7iv/?spm_id_from=333.337.search-card.all.click" class="item">
            <img src="../img/miku2.webp" alt="">
        </a>
        <a href="https://www.bilibili.com/video/BV1np411o7iv/?spm_id_from=333.337.search-card.all.click" class="play-btn">

        </a>
        <a href="https://www.bilibili.com/video/BV1np411o7iv/?spm_id_from=333.337.search-card.all.click" class="mask">
            <h2>初音未来2016</h2>
            <p>Magical Mirai 魔法未来演唱会</p>
        </a>
        
    </div>
</body>
</html>